import threading
import time


class External_events:
    def __init__(self) -> None:
        self.thread()
        self.list_func_data = []

    def thread_main(self) -> None:
        while True:
            time.sleep(10)
            # config.queue_message_external_events.put(("str_mess","Иди сюда тебе кранты, ты полетишь в вонте кусты"))
            # obj_config.communication_obj.event_message()

    def func_and_params(self, func, settings, tags=()):
        self.list_func_data.append((func, tags, settings))

    def del_func(self, key_func):
        pass

    def thread(self) -> None:
        my_thread = threading.Thread(target=self.thread_main, daemon=True)
        my_thread.start()
